<script type="text/javascript">
  $(function(){
    $('#idModulo').change(function(){
      strUrl = '<?=$this->baseUrl?>/matriculas/load-turmas-ajax/idModulo/' + $(this).val();
      //alert(strUrl);
      $('#listaTurmas').load(strUrl);                    
    });
    
    $('#idModulo').change(function(){
      strUrl2 = '<?=$this->baseUrl?>/matriculas/load-precos-ajax/idModulo/' + $(this).val();
      $('#showValores').load(strUrl2);                    
    });
  });
</script>
<select name="idModulo" id="idModulo">
  <option value="">Selecione</option>
  <?php
    foreach($this->modulos as $arrResult){
      ?>
      <option value="<?php echo $arrResult['idModulo']?>">
        <?php echo utf8_encode($arrResult['ds_modulo'])?>
      </option>   
      <?php
    }
  ?>  
</select>
